// 引入默认settings---defaultSettings
import defaultSettings from '@/settings'

// 获取默认title
const title = defaultSettings.title || 'Vue Admin Template'

export default function getPageTitle(pageTitle) {
  if (pageTitle) {
    // ${pageTitle} - ${title} 页面标题和项目标题
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
